[...pageid].vue 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <script setup lang="ts">
  2. useHead({
  3. title: `Help — Hush Your Money`,
  4. meta: [
  5. { name: 'description', content: `Hush Your Money makes spending safu.` }
  6. ],
  7. })
  8. /* Initialize stores. */
  9. import { useSystemStore } from '@/stores/system'
  10. const System = useSystemStore()
  11. const route = useRoute()
  12. console.log('ROUTE', route)
  13. const networkid = route?.params?.pageid[0]
  14. console.log('NETWORK ID', networkid)
  15. const guideid = route?.params?.pageid[1]
  16. console.log('GUIDE ID', guideid)
  17. let guide
  18. const init = () => {
  19. switch(networkid) {
  20. case 'bch':
  21. guide = 'lorem ipsum'
  22. break
  23. default:
  24. // TODO
  25. }
  26. }
  27. onMounted(() => {
  28. // init()
  29. })
  30. // onBeforeUnmount(() => {
  31. // console.log('Before Unmount!')
  32. // // Now is the time to perform all cleanup operations.
  33. // })
  34. </script>
  35. <template>
  36. <main class="max-w-5xl mx-auto py-5 flex flex-col gap-4">
  37. <pre>DEBUG: {{ networkid }} — {{ guideid }}</pre>
  38. <HelpBCHWalletIntegration />
  39. </main>
  40. </template>